package BasicCmIRPConstDefs;
/**
 * Generated from IDL enum "AttributeErrorCategory".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class AttributeErrorCategory
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _NO_SUCH_ATTRIBUTE = 0;
	public static final AttributeErrorCategory NO_SUCH_ATTRIBUTE = new AttributeErrorCategory(_NO_SUCH_ATTRIBUTE);
	public static final int _INVALID_ATTRIBUTE_VALUE = 1;
	public static final AttributeErrorCategory INVALID_ATTRIBUTE_VALUE = new AttributeErrorCategory(_INVALID_ATTRIBUTE_VALUE);
	public static final int _MISSING_ATTRIBUTE_VALUE = 2;
	public static final AttributeErrorCategory MISSING_ATTRIBUTE_VALUE = new AttributeErrorCategory(_MISSING_ATTRIBUTE_VALUE);
	public static final int _INVALID_MODIFY_OPERATOR = 3;
	public static final AttributeErrorCategory INVALID_MODIFY_OPERATOR = new AttributeErrorCategory(_INVALID_MODIFY_OPERATOR);
	public static final int _MODIFY_NOT_ALLOWED = 4;
	public static final AttributeErrorCategory MODIFY_NOT_ALLOWED = new AttributeErrorCategory(_MODIFY_NOT_ALLOWED);
	public static final int _MODIFY_FAILED = 5;
	public static final AttributeErrorCategory MODIFY_FAILED = new AttributeErrorCategory(_MODIFY_FAILED);
	public int value()
	{
		return value;
	}
	public static AttributeErrorCategory from_int(int value)
	{
		switch (value) {
			case _NO_SUCH_ATTRIBUTE: return NO_SUCH_ATTRIBUTE;
			case _INVALID_ATTRIBUTE_VALUE: return INVALID_ATTRIBUTE_VALUE;
			case _MISSING_ATTRIBUTE_VALUE: return MISSING_ATTRIBUTE_VALUE;
			case _INVALID_MODIFY_OPERATOR: return INVALID_MODIFY_OPERATOR;
			case _MODIFY_NOT_ALLOWED: return MODIFY_NOT_ALLOWED;
			case _MODIFY_FAILED: return MODIFY_FAILED;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _NO_SUCH_ATTRIBUTE: return "NO_SUCH_ATTRIBUTE";
			case _INVALID_ATTRIBUTE_VALUE: return "INVALID_ATTRIBUTE_VALUE";
			case _MISSING_ATTRIBUTE_VALUE: return "MISSING_ATTRIBUTE_VALUE";
			case _INVALID_MODIFY_OPERATOR: return "INVALID_MODIFY_OPERATOR";
			case _MODIFY_NOT_ALLOWED: return "MODIFY_NOT_ALLOWED";
			case _MODIFY_FAILED: return "MODIFY_FAILED";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected AttributeErrorCategory(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
